package com.dkm.ec.product.persistence.entity;
import java.util.Date;

import org.apache.commons.lang.builder.ToStringBuilder;

import com.dkm.base.api.annotion.IField;
import com.dkm.base.api.annotion.ITable;
import com.dkm.base.db.persistence.entity.AbstractPo;

/**
 * 对象功能:商品点赞 Tbl对象
 * 开发公司:dkm.com
 * 开发人员:ZHH
 * 创建时间:2017-07-31 20:40:10
 */
 @ITable(name="productLike",code="t_prod_like")
public class ProductLikeTbl extends AbstractPo<String>{
	@IField(name="id",column="id_")
	protected String  id; 		/*ID*/
	@IField(name="prodId",column="prod_id_")
	protected String  prodId; 		/*产品 ID*/
	@IField(name="userType",column="user_type_")
	protected String  userType; 		/*用户类型。member=会员；visitor=游客（未登录）*/
	@IField(name="uid",column="uid_")
	protected String  uid; 		/*用户 ID 或 游客 ID*/
	@IField(name="memberId",column="member_id_")
	protected String  memberId; 		/*会员 ID。当用户类型是会员时，本字段有值。*/
	@IField(name="ip",column="ip_")
	protected String  ip; 		/*IP*/
	@IField(name="createTime",column="create_time_")
	protected java.util.Date  createTime; 		/*创建时间*/
	
	
	public void setId(String id) 
	{
		this.id = id;
	}
	/**
	 * 返回 ID
	 * @return
	 */
	public String getId() 
	{
		return this.id;
	}
	public void setProdId(String prodId) 
	{
		this.prodId = prodId;
	}
	/**
	 * 返回 产品 ID
	 * @return
	 */
	public String getProdId() 
	{
		return this.prodId;
	}
	public void setUserType(String userType) 
	{
		this.userType = userType;
	}
	/**
	 * 返回 用户类型。member=会员；visitor=游客（未登录）
	 * @return
	 */
	public String getUserType() 
	{
		return this.userType;
	}
	public void setUid(String uid) 
	{
		this.uid = uid;
	}
	/**
	 * 返回 用户 ID 或 游客 ID
	 * @return
	 */
	public String getUid() 
	{
		return this.uid;
	}
	public void setMemberId(String memberId) 
	{
		this.memberId = memberId;
	}
	/**
	 * 返回 会员 ID。当用户类型是会员时，本字段有值。
	 * @return
	 */
	public String getMemberId() 
	{
		return this.memberId;
	}
	public void setIp(String ip) 
	{
		this.ip = ip;
	}
	/**
	 * 返回 IP
	 * @return
	 */
	public String getIp() 
	{
		return this.ip;
	}
	public void setCreateTime(java.util.Date createTime) 
	{
		this.createTime = createTime;
	}
	/**
	 * 返回 创建时间
	 * @return
	 */
	public java.util.Date getCreateTime() 
	{
		return this.createTime;
	}
	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() 
	{
		return new ToStringBuilder(this)
		.append("id", this.id) 
		.append("prodId", this.prodId) 
		.append("userType", this.userType) 
		.append("uid", this.uid) 
		.append("memberId", this.memberId) 
		.append("ip", this.ip) 
		.append("createTime", this.createTime) 
		.toString();
	}
}